import http from '@/utils/http'
import type { PageRes } from '@/types/api'

export interface Task {
    id: string
    name: string
    projectId: string
    deviceId: string
    // 其他字段根据实际接口补充
}


/** 根据项目ID获取任务列表 */
export function listTasksByProject(projectId: string) {
    return http.get<PageRes<Task[]>>(`/task/info/listByProject?projectId=${projectId}`)
}
